console.log('加载event.js');
//侧边栏
$$(document).on('click','.design_anli',function(){
	$$('.panel-left .nav-btn').removeClass('active');
	$$(this).addClass('active');
	mainView.router.load({
        "url":base_url+"anli/anli_index.html"
    });
});
$$(document).on('click','.zy_product',function(){
	$$('.panel-left .nav-btn').removeClass('active');
	$$(this).addClass('active');
	mainView.router.load({
        "url":base_url+"zyproduct/selfplayingmethodlist.html"
    });
});
//案例首页点击进入案例详情
$$(document).on('click','.anli_index_enter_detail',function(){
	var anliId = $$(this).data('anliId');
	mainView.router.load({
        "url":base_url+"anli/detail.html",
        "context":{"anliId":anliId,}
    });
});
//自营项目列表进入自营详情
$$(document).on("click",".selfplayitem",function(){
    var selfplayitem_id = $$(this).data('id');         
    $$.getJSON(url_get_selfplayingmethoddetail, {id:selfplayitem_id}, function (ajaxresult) {
        if(ajaxresult.code==1){
            //console.log(ajaxresult.data);
            mainView.router.load({
                "url":base_url+"zyproduct/selfplayingmethoddetail.html",
                "context":ajaxresult.data
            });                     
        }else{
            ajaxfail(ajaxresult.msg);
        }
    });     
});